\doxysubsection{Linear Interpolation }
\hypertarget{group___linear_interpolate}{}\label{group___linear_interpolate}\index{Linear Interpolation@{Linear Interpolation}}
\doxysubsubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\+\_\+\+\_\+\+STATIC\+\_\+\+FORCEINLINE float32\+\_\+t \mbox{\hyperlink{group___linear_interpolate_ga5335f60532bab8cee1e7c22f76a41805}{arm\+\_\+linear\+\_\+interp\+\_\+f32}} (\mbox{\hyperlink{structarm__linear__interp__instance__f32}{arm\+\_\+linear\+\_\+interp\+\_\+instance\+\_\+f32}} \texorpdfstring{$\ast$}{*}S, float32\+\_\+t x)
\begin{DoxyCompactList}\small\item\em Process function for the floating-\/point Linear Interpolation Function. \end{DoxyCompactList}\item 
\+\_\+\+\_\+\+STATIC\+\_\+\+FORCEINLINE q31\+\_\+t \mbox{\hyperlink{group___linear_interpolate_gaeaf31289367ac36c4727939e1ea73312}{arm\+\_\+linear\+\_\+interp\+\_\+q31}} (q31\+\_\+t \texorpdfstring{$\ast$}{*}p\+YData, q31\+\_\+t x, uint32\+\_\+t n\+Values)
\begin{DoxyCompactList}\small\item\em Process function for the Q31 Linear Interpolation Function. \end{DoxyCompactList}\item 
\+\_\+\+\_\+\+STATIC\+\_\+\+FORCEINLINE q15\+\_\+t \mbox{\hyperlink{group___linear_interpolate_ga9a308a0de4d4e4fe4a262a99b17121cd}{arm\+\_\+linear\+\_\+interp\+\_\+q15}} (q15\+\_\+t \texorpdfstring{$\ast$}{*}p\+YData, q31\+\_\+t x, uint32\+\_\+t n\+Values)
\begin{DoxyCompactList}\small\item\em Process function for the Q15 Linear Interpolation Function. \end{DoxyCompactList}\item 
\+\_\+\+\_\+\+STATIC\+\_\+\+FORCEINLINE q7\+\_\+t \mbox{\hyperlink{group___linear_interpolate_gafabd4124a8724055329b5c484419f936}{arm\+\_\+linear\+\_\+interp\+\_\+q7}} (q7\+\_\+t \texorpdfstring{$\ast$}{*}p\+YData, q31\+\_\+t x, uint32\+\_\+t n\+Values)
\begin{DoxyCompactList}\small\item\em Process function for the Q7 Linear Interpolation Function. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsubsection{Detailed Description}
end of Inverse park group

Linear interpolation is a method of curve fitting using linear polynomials. Linear interpolation works by effectively drawing a straight line between two neighboring samples and returning the appropriate point along that line

\begin{DoxyParagraph}{}

\end{DoxyParagraph}
\begin{DoxyParagraph}{}
A Linear Interpolate function calculates an output value(y), for the input(x) using linear interpolation of the input values x0, x1( nearest input values) and the output values y0 and y1(nearest output values)
\end{DoxyParagraph}
\begin{DoxyParagraph}{Algorithm\+:}

\begin{DoxyPre}
      y = y0 + (x -\/ x0) * ((y1 -\/ y0)/(x1-\/x0))
      where x0, x1 are nearest values of input x
            y0, y1 are nearest values to output y
\end{DoxyPre}

\end{DoxyParagraph}
\begin{DoxyParagraph}{}
This set of functions implements Linear interpolation process for Q7, Q15, Q31, and floating-\/point data types. The functions operate on a single sample of data and each call to the function returns a single processed value. {\ttfamily S} points to an instance of the Linear Interpolate function data structure. {\ttfamily x} is the input sample value. The functions returns the output value.
\end{DoxyParagraph}
\begin{DoxyParagraph}{}
if x is outside of the table boundary, Linear interpolation returns first value of the table if x is below input range and returns last value of table if x is above range.
\end{DoxyParagraph}


\label{doc-func-members}
\Hypertarget{group___linear_interpolate_doc-func-members}
\doxysubsubsection{Function Documentation}
\Hypertarget{group___linear_interpolate_ga5335f60532bab8cee1e7c22f76a41805}\index{Linear Interpolation@{Linear Interpolation}!arm\_linear\_interp\_f32@{arm\_linear\_interp\_f32}}
\index{arm\_linear\_interp\_f32@{arm\_linear\_interp\_f32}!Linear Interpolation@{Linear Interpolation}}
\doxysubsubsubsection{\texorpdfstring{arm\_linear\_interp\_f32()}{arm\_linear\_interp\_f32()}}
{\footnotesize\ttfamily \label{group___linear_interpolate_ga5335f60532bab8cee1e7c22f76a41805} 
\+\_\+\+\_\+\+STATIC\+\_\+\+FORCEINLINE float32\+\_\+t arm\+\_\+linear\+\_\+interp\+\_\+f32 (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structarm__linear__interp__instance__f32}{arm\+\_\+linear\+\_\+interp\+\_\+instance\+\_\+f32}} \texorpdfstring{$\ast$}{*}}]{S}{, }\item[{float32\+\_\+t}]{x}{}\end{DoxyParamCaption})}



Process function for the floating-\/point Linear Interpolation Function. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{in,out}}  & {\em S} & is an instance of the floating-\/point Linear Interpolation structure \\
\hline
\mbox{\texttt{in}}  & {\em x} & input sample to process \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
y processed output sample. 
\end{DoxyReturn}
\Hypertarget{group___linear_interpolate_ga9a308a0de4d4e4fe4a262a99b17121cd}\index{Linear Interpolation@{Linear Interpolation}!arm\_linear\_interp\_q15@{arm\_linear\_interp\_q15}}
\index{arm\_linear\_interp\_q15@{arm\_linear\_interp\_q15}!Linear Interpolation@{Linear Interpolation}}
\doxysubsubsubsection{\texorpdfstring{arm\_linear\_interp\_q15()}{arm\_linear\_interp\_q15()}}
{\footnotesize\ttfamily \label{group___linear_interpolate_ga9a308a0de4d4e4fe4a262a99b17121cd} 
\+\_\+\+\_\+\+STATIC\+\_\+\+FORCEINLINE q15\+\_\+t arm\+\_\+linear\+\_\+interp\+\_\+q15 (\begin{DoxyParamCaption}\item[{q15\+\_\+t \texorpdfstring{$\ast$}{*}}]{p\+YData}{, }\item[{q31\+\_\+t}]{x}{, }\item[{uint32\+\_\+t}]{n\+Values}{}\end{DoxyParamCaption})}



Process function for the Q15 Linear Interpolation Function. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{in}}  & {\em p\+YData} & pointer to Q15 Linear Interpolation table \\
\hline
\mbox{\texttt{in}}  & {\em x} & input sample to process \\
\hline
\mbox{\texttt{in}}  & {\em n\+Values} & number of table values \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
y processed output sample.
\end{DoxyReturn}
\begin{DoxyParagraph}{}
Input sample {\ttfamily x} is in 12.\+20 format which contains 12 bits for table index and 20 bits for fractional part. This function can support maximum of table size 2\texorpdfstring{$^\wedge$}{\string^}12. 
\end{DoxyParagraph}
\Hypertarget{group___linear_interpolate_gaeaf31289367ac36c4727939e1ea73312}\index{Linear Interpolation@{Linear Interpolation}!arm\_linear\_interp\_q31@{arm\_linear\_interp\_q31}}
\index{arm\_linear\_interp\_q31@{arm\_linear\_interp\_q31}!Linear Interpolation@{Linear Interpolation}}
\doxysubsubsubsection{\texorpdfstring{arm\_linear\_interp\_q31()}{arm\_linear\_interp\_q31()}}
{\footnotesize\ttfamily \label{group___linear_interpolate_gaeaf31289367ac36c4727939e1ea73312} 
\+\_\+\+\_\+\+STATIC\+\_\+\+FORCEINLINE q31\+\_\+t arm\+\_\+linear\+\_\+interp\+\_\+q31 (\begin{DoxyParamCaption}\item[{q31\+\_\+t \texorpdfstring{$\ast$}{*}}]{p\+YData}{, }\item[{q31\+\_\+t}]{x}{, }\item[{uint32\+\_\+t}]{n\+Values}{}\end{DoxyParamCaption})}



Process function for the Q31 Linear Interpolation Function. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{in}}  & {\em p\+YData} & pointer to Q31 Linear Interpolation table \\
\hline
\mbox{\texttt{in}}  & {\em x} & input sample to process \\
\hline
\mbox{\texttt{in}}  & {\em n\+Values} & number of table values \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
y processed output sample.
\end{DoxyReturn}
\begin{DoxyParagraph}{}
Input sample {\ttfamily x} is in 12.\+20 format which contains 12 bits for table index and 20 bits for fractional part. This function can support maximum of table size 2\texorpdfstring{$^\wedge$}{\string^}12. 
\end{DoxyParagraph}
\Hypertarget{group___linear_interpolate_gafabd4124a8724055329b5c484419f936}\index{Linear Interpolation@{Linear Interpolation}!arm\_linear\_interp\_q7@{arm\_linear\_interp\_q7}}
\index{arm\_linear\_interp\_q7@{arm\_linear\_interp\_q7}!Linear Interpolation@{Linear Interpolation}}
\doxysubsubsubsection{\texorpdfstring{arm\_linear\_interp\_q7()}{arm\_linear\_interp\_q7()}}
{\footnotesize\ttfamily \label{group___linear_interpolate_gafabd4124a8724055329b5c484419f936} 
\+\_\+\+\_\+\+STATIC\+\_\+\+FORCEINLINE q7\+\_\+t arm\+\_\+linear\+\_\+interp\+\_\+q7 (\begin{DoxyParamCaption}\item[{q7\+\_\+t \texorpdfstring{$\ast$}{*}}]{p\+YData}{, }\item[{q31\+\_\+t}]{x}{, }\item[{uint32\+\_\+t}]{n\+Values}{}\end{DoxyParamCaption})}



Process function for the Q7 Linear Interpolation Function. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{in}}  & {\em p\+YData} & pointer to Q7 Linear Interpolation table \\
\hline
\mbox{\texttt{in}}  & {\em x} & input sample to process \\
\hline
\mbox{\texttt{in}}  & {\em n\+Values} & number of table values \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
y processed output sample.
\end{DoxyReturn}
\begin{DoxyParagraph}{}
Input sample {\ttfamily x} is in 12.\+20 format which contains 12 bits for table index and 20 bits for fractional part. This function can support maximum of table size 2\texorpdfstring{$^\wedge$}{\string^}12. 
\end{DoxyParagraph}
